import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

//全局注入axios
import axios from 'axios';
//方案1:简单粗暴的原型注入,不被编程工具认可,使用时没提示
// Vue.prototype.axios=axios
//方案2:vue-axios模块,提供标注化的注入,有提示
import VueAxios from 'vue-axios';  //npm i vue-axios
//在注入到vue之前,设置axios的基础路径--在发请求是自动拼接到地址的前面
// axios.defaults.baseURL='https://web.codeboy.com/xuezi/data/'
Vue.use(VueAxios,axios)

//全局引入vant
import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);

//reset-css清除公共样式
import'reset-css'

//rem布局适配
import'lib-flexible'

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
